const Mock = require("mockjs");
const mockApi: string = process.env.VUE_APP_BASE_API;
import * as loginMock from './login'
import * as menuMock from './menu'
import * as tableMock from './table'

Mock.setup({
    timeout: '500 - 2000'
})

Mock.mock(mockApi + '/login', 'post', loginMock.login)
Mock.mock(mockApi + '/logout', 'post', loginMock.logout)
Mock.mock(RegExp(mockApi + '/table' + '*'), 'get', tableMock.table)
Mock.mock(RegExp(mockApi + '/menu' + '*'), 'get', menuMock.menu)